<template>
  <div class="contract-container">
    <!-- 顶部导航区域 -->
    <div class="header-wrapper">
      <!-- 顶部导航 -->
      <div class="header">
        <van-icon name="arrow-left" class="back-icon" @click="goBack" />
        <div class="header-title">合同审批</div>
      </div>
    </div>

    <!-- 直接显示合同提交表单 -->
    <ContractAdd />
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
import ContractAdd from './add.vue'
import { smartGoBack } from '@/utils/navigation'

// 路由实例
const router = useRouter()

// 返回上一页
const goBack = () => {
  smartGoBack(router)
}
</script>

<style lang="scss" scoped>
@import url('./style/index.scss');
</style>